package com.ssfeng.youxia.event;

import org.springframework.context.ApplicationEvent;

/**
 * Created by liyuhang on 2020-08-21.
 */
public class DemoEvent extends ApplicationEvent {


    private String msg;


    /**
     * Create a new {@code ApplicationEvent}.
     *
     * @param source the object on which the event initially occurred or with
     *               which the event is associated (never {@code null})
     */
    public DemoEvent(Object source,String msg) {
        super(source);
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
